package wiki.xsx.config;

/**
 * @Descript
 * @Author xsx
 * @Date 2017/11/16
 */
public class TargetDataSource implements Database{
    private String driverClassName;
    private DbType dbType;
    private String dbName;
    private String dbUrl;
    private String dbUserName;
    private String dbPassword;

    public TargetDataSource(String driverClassName, DbType dbType, String dbName, String dbUrl, String dbUserName, String dbPassword) {
        this.driverClassName = driverClassName;
        this.dbType = dbType;
        this.dbName = dbName;
        this.dbUrl = dbUrl;
        this.dbUserName = dbUserName;
        this.dbPassword = dbPassword;
    }

    public String getDriverClassName() {
        return driverClassName;
    }

    public TargetDataSource setDriverClassName(String driverClassName) {
        this.driverClassName = driverClassName;
        return this;
    }

    public DbType getDbType() {
        return dbType;
    }

    public TargetDataSource setDbType(DbType dbType) {
        this.dbType = dbType;
        return this;
    }

    public String getDbName() {
        return dbName;
    }

    public void setDbName(String dbName) {
        this.dbName = dbName;
    }

    public String getDbUrl() {
        return dbUrl;
    }

    public TargetDataSource setDbUrl(String dbUrl) {
        this.dbUrl = dbUrl;
        return this;
    }

    public String getDbUserName() {
        return dbUserName;
    }

    public TargetDataSource setDbUserName(String dbUserName) {
        this.dbUserName = dbUserName;
        return this;
    }

    public String getDbPassword() {
        return dbPassword;
    }

    public TargetDataSource setDbPassword(String dbPassword) {
        this.dbPassword = dbPassword;
        return this;
    }

    @Override
    public String getTableNames() {
        return null;
    }
}
